﻿using UnityEngine;
using System.Collections;

public class PetPropertyLab : MonoBehaviour {

    public UILabel FirstLable;
    public UILabel Nextlable;

    public void SetValue(string name,int value,int isLock=-1)
    {
        if(isLock==-1)//解锁
        {
            FirstLable.text = name;
            Nextlable.text = value.ToString();
        }
        else
        {
            FirstLable.text = string.Concat(isLock, "级解锁");
            Nextlable.text = name;
        }
    }
}
